package com.hilin.entity.em;

import com.hilin.entity.vo.IMStatusVo;

public enum IMStatus {

    ONLINE(1, "在线"),
    OFFLINE(2, "离线");

    private final int status;
    private final String statusName;

    IMStatus(int status, String statusName) {
        this.status = status;
        this.statusName = statusName;
    }

    public IMStatusVo toVo() {
        return IMStatusVo.builder()
                .status(status)
                .statusName(statusName)
                .build();
    }

}